package studio.xiaoyun.core.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 意见反馈
 * @author 岳正灵
 * @version 1.0.0
 */
@Entity
@Table(name = "feedback")
public class Feedback implements Serializable {
	private static final long serialVersionUID = -6986413015449428126L;
	
	/**
	 * ID
	 */
	@Id
	@Column(name = "feedbackID")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private long feedbackID;
	/**
	 * 标题
	 */
	@Column(name = "title", length = 50, nullable = false)
	private String title;
	/**
	 * 文字
	 */
	@Column(name = "text", length = 255, nullable = false)
	private String text;
	/**
	 * 创建日期
	 */
	@Column(name = "createDate", nullable = false)
	private Date createDate = new Date();;
	
	public Date getCreateDate() {
		return createDate;
	}

	public long getFeedbackID() {
		return feedbackID;
	}

	public String getText() {
		return text;
	}

	public String getTitle() {
		return title;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public void setFeedbackID(long feedbackID) {
		this.feedbackID = feedbackID;
	}

	public void setText(String text) {
		this.text = text;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
}
